package com.weds.frame.auth.mapper;

import com.weds.frame.auth.entity.ScOrga;
import com.weds.frame.auth.entity.ScSchool;
import com.weds.frame.auth.entity.SysInfoData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2023/3/31 10:58
 */
@Mapper
public interface ScSchoolMapper {

    //获取数据库与程序的时间差
    Long getDiffServerTime();

    int uptDiffTime(Timestamp serverTime);

    int deleteByPrimaryKey(Integer schoolId);

    int insert(ScSchool record);

    int insertSelective(ScSchool record);

    ScSchool selectByPrimaryKey(Integer schoolId);

    int updateByPrimaryKeySelective(ScSchool record);

    int updateByPrimaryKey(ScSchool record);

    List<ScSchool> selectSchoolInfo();

    ScOrga selectOrgaInfo();

    int initSelective(@Param("schoolId") Integer schoolId, @Param("schoolName") String schoolName, @Param("systemName") String systemName);

    int initClientMenu(@Param("clientList") List<String> clientList);

    SysInfoData getSysInfo(@Param("filePath") String filePath);

}
